﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeckoPhotos.Models;
using GeckoPhotos.Repository;

namespace GeckoPhotos.Service
{
    public class HomeServiceLayer
    {
        private readonly IHomeRepository _repository;

        public HomeServiceLayer(IHomeRepository repository)
        {
            if (repository == null)
                throw new ArgumentNullException();

            _repository = repository;
        }

        public IEnumerable<Message> GetHomeMessages()
        {
            return _repository.GetHomeMessages();
        }

    }
}
